package com.guchenbo.example.trycatch;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author guchenbo
 * @date 2022/3/28
 */
public class StreamClose {
    protected static final Logger log = LoggerFactory.getLogger(StreamClose.class);

    public static void main(String[] args) {
        try {
            try (MyClose close = new MyClose()) {
                System.out.println("1");
            }
        } catch (Exception e) {
            log.error("main error", e);
        }
    }
}
